package com.zues.haikangtempdemo.controller;

import com.zues.haikangtempdemo.service.ThermometryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("temp/watch")
public class TempWatchController {

    @Autowired
    private ThermometryService thermometryService;

    @GetMapping("/info")
    public void watch(){
        thermometryService.getTherm("192.168.1.64", 8000, "admin", "woai3hui");
    }

}
